package org.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.domain.UserDept;
import org.example.service.UserDeptService;
import org.example.mapper.UserDeptMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 24698
* @description 针对表【sys_user_dept】的数据库操作Service实现
* @createDate 2024-04-24 10:44:33
*/
@Service
public class UserDeptServiceImpl extends ServiceImpl<UserDeptMapper, UserDept>
    implements UserDeptService{

    @Autowired
    UserDeptMapper userDeptMapper;

    @Override
    public List<UserDept> lists(UserDept userDept) {
        return userDeptMapper.lists(userDept);
    }

    @Override
    public UserDept getId(Integer id) {
        return userDeptMapper.getId(id);
    }

    @Override
    public boolean updateSec(UserDept userDept) {
        return userDeptMapper.updateSec(userDept);
    }

    @Override
    public boolean addSec(UserDept userDept) {
        return userDeptMapper.addSec(userDept);
    }

    @Override
    public boolean delId(Integer id) {
        return userDeptMapper.delId(id);
    }

    @Override
    public List<UserDept> getDeptName() {
        return userDeptMapper.getDeptName();
    }

}




